package com.common.util;

import java.io.IOException;
import java.util.Properties;

public class LoginUtil {
	
	public static String BACKENDURL;

	public static String BACKENDUSERNAME;
	
	public static String BACKENDPASSWORD;
	
	public static String JOBURL;
	
	public static String JOBUSERNAME;
	
	public static String JOBPASSWORD;
	
	public static String OHUANGGUAURL;
	
	public static String JUBAOPENURL;

	public static String FRONTUSERNAME;
	
	public static String FRONTPASSWORD;
	
	static {
		Properties p = new Properties();
		try {
			p.load(ProcessUtil.class.getResourceAsStream("/properties/logininfo.properties"));
			BACKENDURL = p.getProperty("backendurl"); //钜宝盆后台url
			BACKENDUSERNAME = p.getProperty("backendusername"); //钜宝盆后台用户名
			BACKENDPASSWORD = p.getProperty("backendpassword"); //钜宝盆后台密码
			JOBURL = p.getProperty("joburl"); //job页面url
			JOBUSERNAME = p.getProperty("jobusername"); //job登录用户名
			JOBPASSWORD = p.getProperty("jobpassword"); //job登录密码
			OHUANGGUAURL = p.getProperty("ohuangguaurl"); //黄瓜前台url
			JUBAOPENURL = p.getProperty("jubaopenurl"); //钜宝盆前台url
			FRONTUSERNAME = p.getProperty("frontusername"); //前台用户名
			FRONTPASSWORD = p.getProperty("frontpassword"); //前台密码
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
